package com.future.mayi.activity;

import android.support.v4.app.FragmentTransaction;

import com.future.mayi.R;
import com.future.mayi.fragment.CouponsFragment;

public class GetCouponsActivity extends BaseTitleActivity {



    @Override
    protected void initTopBar() {
        initBack();
        getTitleText().setText("优惠券");
    }

    @Override
    protected void initLayout() {
        setContentView(R.layout.activity_get_coupons);
    }

    @Override
    protected void initView() {

        CouponsFragment couponsFragment = new CouponsFragment();
        couponsFragment.setType(4);
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(R.id.frame_layout, couponsFragment);
        transaction.commitAllowingStateLoss();

    }

    @Override
    protected void initDates() {

    }

    @Override
    protected void initListener() {

    }


}
